<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<div class="portlet box green">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-gift"></i>护士
        </div>
    </div>
    <div class="portlet-body form">
        <form id="nurseForm" class="form-horizontal form-bordered" action="/nurse/save" method="post">
            <div class="form-group">
                <label class="col-md-3 control-label">用户名:</label>
                <div class="col-md-4">
                    ${nurse.userName}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">真实姓名:</label>
                <div class="col-md-4">
                    ${nurse.name}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">头像:</label>
                <div class="col-md-9">
                    <c:if test="${not empty nurse.avatarUrl}">
                        <img style="max-height: 200px;max-width: 200px;width: auto;height: auto;" src="<c:url value="/common/showImage?filePath=${nurse.avatarUrl}"></c:url>" alt=""/>
                    </c:if>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">密码:</label>
                <div class="col-md-4">
                    ${nurse.password}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">所在科室:</label>
                <div class="col-md-4">
                    ${nurse.departmentName}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">年龄:</label>
                <div class="col-md-4">
                    ${nurse.age}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">性别:</label>
                <div class="col-md-4">
                    <label>
                        <c:if test="${nurse.sex == 1}">男</c:if>
                        <c:if test="${nurse.sex == 0}">女</c:if>
                        <c:if test="${nurse.sex == 2}">保密</c:if>
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label">手机号:</label>
                <div class="col-md-4">
                    ${nurse.phone}
                </div>
            </div>
            <div class="form-actions">
                <div class="col-md-9 col-md-offset-3">
                    <button type="reset" class="btn btn-default" onclick="showCancel()">
                        <spring:message code="btn.return"></spring:message>
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="<c:url value="/static/custom/datepicker-util.js"></c:url>"></script>